Fix double-nested json object in comments controller

`modify Comments js object(its functions) accordingly--queryCommentDatabase