scanner and local database