Fix the bug when the Mysql database collation is not set to ci

Bug #1326174

Change-Id: I2ff391b74533092b9c2e0aeaa8a34ed5059d1119
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
Merge "Fix the bug when the Mysql database collation is not set to ci"