Python script to compare two database tables. Every table has an ID and a Version