Fix broken Postgresql tasks