Move DB transaction into separate utility class

Change-Id: I3d9d0cb8dee331726f55164f77e3a5e8bf14cda6
[BUGFIX] Properly initialize site in BE module

Follow up to #60404

Resolves: #60404

Change-Id: I5223b50cea6a4dc9bedf784956a944fc8bbb1b48