private static boolean insertEmployee(Employee bean, PreparedStatement stmt) throws SQLException{
		
		stmt.setString(1, bean.getName());
		stmt.setString(2, bean.getUsername());
		stmt.setString(3, bean.getPass());
		stmt.setDate(4, bean.getDob());
		stmt.setString(5, bean.getPhone());
		stmt.setString(6, bean.getAddress());
		stmt.setString(7, bean.getEmail());
		stmt.setString(8, bean.getPosition());
		
		int affected = stmt.executeUpdate();
		if(affected == 1){
			System.out.println("new employee added successfully");
		}else{
			System.out.println("error adding employee");
			return false;
		}
		return true;
	}