Simplify OC_DB transaction functions
Merge pull request #4299 from owncloud/simplify-db-transaction

Simplify OC_DB transaction functions