Create db transaction error callback fix

I think this should fix #144.