Adjusted local database to use postgresql