Added table_exists method