created db and sitemap class, removed some unnecessary conversions on save (obj to string in js, string to obj in php)