Python Script To Compare Two Database Tables