when was the basilica of st mary built