some improvements on Peter Sørensen's python sqlite2mysql migration script