c++ simple query builder