Created a post route to update records