Adding a get last query method to the database class.
Merge pull request #1 from volnix/master

Adding a get last query method to the database class.