Initial code to add journeys in SQL