finish change to PG db