How can I better optimise these DB queries/function flow? How can I better optimise these DB queries/function flow? mongoose mongoose