create a service to access mongodb collection. All the API return promise