Refactors mongoose code to use $push