Only print db query on error.