cleaned up sqldump.py a bit