added save method to addPosts route
adposts are retrieved from the database
after post is added, updated list of posts are returned to client