Replaced  with  and update() with findOneAndUpdate() and used async parallel in user-routes.js; replaced remove() with findOneAndRemove() in post-routes.js; renamed constants in config.js; moved codes for sending email into a separate module.