Fixing sqlite3 references