add post handler to accept json object for query

Add a post handler for mongo