created and migrated database