list tables query has to updated since it is possible, that one table with different betting_structures has the same name, refs #9799