many changes.

change structure.
specified query functions.
specified Proxies.
change query class names.