Database And Query Analysis Tools For Mysql: Exploiting Hypertree And Hypergraph Decompositions