def update(id)
puts 'Entries wont change of left out blank.'
puts 'Username: '
user =$stdin.gets.chomp
user = DATABASE.get_connection_data[id.to_i][1] if user == ''
puts 'Hostname: '
hostname = $stdin.gets.chomp
hostname = DATABASE.get_connection_data[id.to_i][2] if hostname == ''
puts 'port: '
port = $stdin.gets.chomp
port = DATABASE.get_connection_data[id.to_i][3] if port == ''
puts 'Notes: '
note = $stdin.gets.chomp
note = DATABASE.get_connection_data[id.to_i][4] if note == ''
DATABASE.update_connection(DATABASE.get_connection_data[id.to_i][0], user, hostname, port, note)
end