Stop patching the wrong db api

Re-fixes DB transactions