Resolved conflicts in background polling when switching dbs