FAIMS-297: fixed bug with syncing database not properly detecting changes already have been sent