First working draft of original VisualSQLQueryBuilder