With the help of a GUID and a timestamp of the last write access in every table it would be easy to synchronize Databases. If you want to synchronize only certain elements like varialbes, nodes, users, configuration etc. modules could provide a hook which
Both things could be handled by the db_query() function, to make sure no one forgets to touch the access timestamp and creates accurate GUID's.