use the model class from the view module to talk with db