DB auto script