add post handler to accept json object for query