Changed script

Added database creation lines at beginning of script