Fixes details route from main search page
Details page now fetches from appropriate database