Ensure database is migrated before running tests