making the postgresql working