a mysql version of the script for importing tables