A few more SQLite3 fixes

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>