daemon-rewrite/mysql: Add procedure to remove hosts and services