add sudo to postgres tasks