Add url sanitization and grading methods in model