add done method of newer pg version
update pg and mesa to latest