Postgresql Shell Script Example