model holds the classes and db calls