updated postgres backup script to work with the EC2 instance