fix transactions bug
Merge pull request #1 from kasperhelweg/bug/postgres_transactions

fix transactions bug