add db exit