Adding route to update post

Adding HTTP PUT method to update existing post
Fixing error with the postDAO to update a post. Fixing erroneous use of
UPDATE statement
Fixing update bug in 09752bb30

Bug: Any user would be able to update a post by just knowing its ID,
even though the post doesn't belong to any of his subscribed groups

Adding necessary checks while updating post