scanner added and updated for sqlite3