Added PostgreSQL support (untested), rearranged some classes, corrected
license texts, removed usage.txt, corrected some messages and exception
handling