script database