adding post and updating keys