updated database and script to create database