Database methods are split to model.