Update to use postgresql