checkout complete in ERB and server.rb, issue with update statement