move cachedmodel over to the db loadModels method
add initial framework for abstracting out the database core