Erlang NIF for sqlite