Added script to generate sql
Updated scripts