Moving initialization logic into db model