Fixed removal of outdated datbase entries: discarded concept of sync ID.
Enhanced logging