saving trips to db