script to create database