started work on modules, and mucked around in db.js