With MODX 3 there have been some changes. For example the schema is slightly different.
Take a look at this article that is specifically for MODX 3
https://docs.modx.com/3.x/en/extending-modx/tutorials/using-custom-database-tables
or maybe watch this video.
Specifically for MIGX you need the newest version 3.0.0-beta1.
Take a look a this thread: