Experimenting with xdb API, starting on compare tool.