postgres dump and cleanup script