Added a dbhost parameter to allow external postgres hosts. Also removed mandatory local postgres installation.