table layouts and templates, query attributes (edit,new,del)