[static] anonymize_database for a given policy