Issue #2991052 by chilic, Dave Reid: Fixed Invalid parameter number errors when XmlSitemapLinkStorage may not use IN when array conditions. Injects database connection into XmlSitemapLinkStorage.