before database migration