Unique constraint produced by error in dbsync fixed