Refactor PSQL model to take full db config in the constructor

Closes #58, stops reading configuration variables itself