Refactored models out of db.js; need to break db.js down further.