Updated the logic for DIV display when no data found in DB