Perl script to compare two mysql databases