Fix work on MySQL backend

Closes Bug: #1313543

Change-Id: I87eb2274aa13445a793de896648438067ad12282