set up tables and migrated