adds custom route and refactors to minimize db calls