add in lastQuery to qb instance