Style changes
Extract postgresql args
Docstrings