postgresql dump and cleanup script