edit  script for database creation