altered backup/restore scripts to handle case where user doesn't own plpgsql tables