Move mongo calls into its own function
COSMET
Comments