Fixed a minor bug with SQLite (everything should work now - for real
this time)