change database setup to use postgresql