Created some base classes for database access that should simplify creating new models