use Lua for inserts