Error handling
Merge branch 'master' of https://github.com/travijuu/postgresql-tools
sorting problem fixed