Add Last Query Retrieval

Need a way to get the last query that was executed, as it was executed.