Changed database to use postgresql