renamed query() to getData(), added methods

added getLastData() and getLastQuery()