added handling for updating post data

can now update a post and save the update to a database. will redirect
back to the home page. no links on the site still have to manual enter
edit url to get to the page.