! Lots of SQLite3 fixes

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