Run db sync tasks only if dbs are not up-to-date.

This prevents the db-sync tasks from showing changed every time,
when they are usually not in fact changing.