fixes ability to delete posts from client and database