finished write base logic for flat sql model
finished write editable QueryModel