Pack database after purge