Added database scripting code.