[mod:sql-queries.txt] Redesign tables

Redesigning "indicators","determinants" and "legends" tables