integrate database initialization into config