Add missing tinsert/tconcat to sql.lua
Fix broken tests.