Added postgresql support

Split the database class into multiple parts.
Debian needed an additional package.
Changed adapter logic slightly.
Added tests for postgresql
Updated README for postgres