fixed sitemap logic, updated db schema and frontend sitemap representation