adding sync_notify relative path to build_id
changing to small table
changed counting total num in diff while missing record
adding diff.py table existence check