added a funciton to insert a post to the users table