added database and migration features