db implm fix, shell command fixes