search data from server, favourites from sqlitedb