creating SQL script for database;