Added ifnull() to sql for queries in WebDaoImpl to prevent null pointers against phenodigm2 (yeah, RTF schema).