Fixed the if statement to display things without anything in the db