don't leave open transactions to postgres on errors
Merge pull request #19 from mark-burnett/cleanup-after-request

Don't leave postgres transactions open on errors