create script to generate import.sql