public void leaveAllChannels(User user){
		try {
			Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
			String url = "jdbc:derby:" + DBName;
			Connection connection = DriverManager.getConnection(url);
			Statement statement = connection.createStatement();
			
			String deleteStatement = "DELETE FROM userchatrelations WHERE userID=" + user.getID();
			
			statement.executeUpdate(deleteStatement);
		
			statement.close();
			connection.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}