Moved the db sync for local access to watchdog thread.