TripDB: Basic functions