Reviewer Andy : Db sync

Extended the db sync tool to deal with private ids. We now first check if we have a private id for a line, and if we don't, we clean up. If we do we use that private id to perform all the checks we did before. Namely, if we don't have a digest, delete the line and if we have no ifc, create the default ones.

Tested by running against my deployment and fiddling with the databases on ellis and homestead.