added before script to create database