Make sure the parameter 'values' is an array. Bug 1394056

in the calls of the dml function: get_record_sql()

Change-Id: I28d6d03258c6141e9cdca21bf201228522d8b809
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>