migrated the database