Example of PostgreSQL support

Please do not merge this yet, i haven't tested it - and there are no tests yet anyway.