Fix purge foreign key failure
Add calendar subscription link to top page