Fixed sync blocking issues and invalid flag is now cleared upon reciept
of an ack from a database submission