Added table_exists method

Added table_exists method