private static UserDAO.User extractUser(ResultSet set) throws Exception{
        int userid = set.getInt("userid");
        String fullname = set.getString("fullname");
        String username = set.getString("username");
        String password = set.getString("password");
        int usertype = set.getInt("usertype");
        return  new UserDAO.User(userid, username, password, fullname, usertype);
    }