private void save(String nameV,String surnameV,String usernameV,String passV,String oximaV,String action){
		/*
		 * apothikeuei ta stoixia i tis allages sthn vash kai emfanizei ta katallhla minimata
		 */
		String query;
		if(action.equals("insert"))
			query="insert into odigoi(onoma,eponimo,username,password,oxima) values(?,?,?,?,?)";
		else
			query="update odigoi set onoma=?, eponimo=? , username=?,password=?,oxima=? WHERE id=?";
		try {
			con.pS=con.conn.prepareStatement(query);
			con.pS.setString(1, nameV);
			con.pS.setString(2, surnameV);
			con.pS.setString(3, usernameV);
			con.pS.setString(4, passV);
			con.pS.setString(5, oximaV);
			if(action.equals("update"))
				con.pS.setInt(6, id);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		if(con.makeQuery(query)){
			JOptionPane.showMessageDialog(null, "Saved!");
			if(id!=0)
				dispose();
			else{
				name.setText("");
				surname.setText("");
				username.setText("");
				pass.setText("");
				pass2.setText("");
			}
		}else{
			JOptionPane.showMessageDialog(null, "Something went wrong please try later!");
		}
			
		
	}