Add support for getting last query statement and runtime