Add dbprefix to the table name in SQL statement (Bug #1326174)

Change-Id: Ic13cb97266433cc9cb0a5f95761f58a1a8a7b8c5
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
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>