Integration of web service with mongodb