fix the older_than bug for purge_database CLI