[PDIOMON-5] Implemented the API functions, and removed some of them. Still need to implement getting the mongodb size