Update for Lua 5.2
Improve sqlite.assert