added RESTful methods
configured mongodb connection
*