Graphicaly build sql query from tables and their keys loaded from xml