[OE-3856] implemented low-level table versioning using an extension of the CdbCommandBuilder class and wrapped the sql in transactions.