text: const connection = require('./db_connection')
  const Uuid = require('cassandra-driver').types.Uuid;
  const TimeUuid = require('cassandra-driver').types.TimeUuid;
  
  // Defining our journey
  const journey_id = TimeUuid.fromString('84121060-c66e-11ea-a82e-f931183227ac')
  const spacecraft_name = 'Crew Dragon Endeavour,SpaceX'
  
  console.log("========================================")
  console.log("Start exercise")
  console.log("9..8..7..6..5..4..3..2..1 Ignition")
  
  connection.client.execute(
      'UPDATE spacecraft_journey_catalog SET active=true, start=? WHERE spacecraft_name=? AND journey_id=?',
      [ Date.now(), spacecraft_name, journey_id],
      { prepare : true }
  )
  .then(function (result){
  	console.log("Journey %s has now taken off", journey_id.toString());
      connection.client.shutdown()
      console.log("SUCCESS")
  })
  .catch(function (error){
       console.log(error.message)
       connection.client.shutdown()
  });
  
  console.log("========================================")
  