Improve documentation for some postgresql classes

* Improve documentation
* Do some linting