using local database when available