set up to use postgresql