Added sql_escape function and cleaned up test.lua