get trips by ids from sqlite