Basic working Mongoose implementation. REALLY messy