Database connection and a closure model
script to create database