Patched postgres backup script