I\'m trying to check if data exists in a table. First I check whether the table exists then I use a SELECT statement to check whether the table is empty or not