App can now pull query from rails database and search api with said query