Added database script

Added database script