Use freeswitch.Dbh (https://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh)

It's stable and uses FreeSWITCH's connection pools.

It supports any FreeSWITCH DSNs - so sqlite, ODBC or postgresql native driver.
https://wiki.freeswitch.org/wiki/DSN