public static void insertStaff(Staff staff){
		
		try {
			   if(conn == null || conn.isClosed()){
			    conn = DatabaseConnection.getConnection();
			   }
			  } catch (SQLException e1) {
			   // TODO Auto-generated catch block
			   e1.printStackTrace();
			  }
		
		Login login = staff.getLogin();
		
		try{
			conn.setAutoCommit(false);
			PreparedStatement stmnt = conn.prepareStatement("INSERT INTO Staff VALUES (?,?,?,?,?)"); 
			stmnt.setString(1, login.getStaffID());
			stmnt.setString(2, staff.getName());
			stmnt.setString(3, staff.getSurname()); 
			stmnt.setString(4, login.getPassword());
			stmnt.setString(5, staff.getFunction());
			
			stmnt.execute();
			conn.commit();
			conn.setAutoCommit(true);
			
		}catch(SQLException e){
			System.out.println("insert fail!! - " + e);
		}
		
	}