fixed database connection in createSitemap