added database migration controls