add scriptr for DB