db null issue

removed was dbnull on some.. so fixing for the compare