Added Query class and some refactor
 * Added Query Class
 * Added sub query support
 * Added param support
 * etc