Fixes to SQLLite