Create tablesync.pl

This is some code I wrote a few years ago - about a year ago I needed to sync some data between a mysql db and a sqllite db and this worked just fine.