Reset default values.
Add proper configuration for Postgresql connection info. Also, change to using a switch statement for various connection methods.