added POST route for adding post to database