create generic mongo service, used the generic mongo service in all the services