Wrote backend for comments and posts