Add search bar infrastructure to main page and backend