script for generating SQL scripts