Fix db object in migration file