Storage and analysis of massive TINs in a DBMS