use local database instead of remote one for caching