syslock and trx mysql re-modified