added search on db, need improvements for params on sqlite3