Add functions to drop_custom_objects.sql