make the postgresql works