added function inside posts service to retriee posts
created and saving posts in db
added create function
added upvotes for saving