introduced mongodb connection for rest-api-module