Fixed missing db entry and missing local guid if local and remote files are equal