Script to create database