Check for empty key
Fetch assoc in db table find
Codestyle
Remove unused variables
Throw no route found exception when no route is found