Using query->execute to get result into string