added web api for mongo db