update cleanup_assets query according to new format