[mysql]: query object creation