Config postgres as database.