Stop patching the wrong db api

Re-fixes DB transactions
Merge pull request #16 from Cerberus98/master

Re-fixes DB transactions