guts mongo/mogoose, replaces with pg/knex, refactors, needs authentication