fixed search by ingredient sql query. beginnings of search dialog, broken at the moment