Finished the Lua runSQL function, minor fix for Lua Merchant code.