another round of updates for database setup and migrations