Removed nested transaction in the PATCH handler, it has a bug with SQLlite behaviour