Updated routes to allow searching by scores and lots of refactoring