draft version of adding a post into mongodb