Database only updates if the local version changes