Script for db