Adding functionaliy to add posting
-Changing insert to upsert
-adding functionality to retrieve and update post