working on the edit function for tours, TODO get and separate the date from the time from the database