Now using std::unique_ptr for queries instead of a raw pointer, its awesome!