setupscript for db