testing database migrations and working state after fresh database generation