db exit codes fix