LuaJIT FFI binding to the Sophia database