Fixing DB error. Fixing issue where pagestats get saved under wrong URL.