Add Dbh null sets in case of query error