public String addUser(String first, String last, String name, String pass,
                          String role) {
        if (data != null) {
            for (int i = 0; i < data.length; i++) {
                if (data[i][1].equals(name)) {
                    return I18N.getMessageString("Username already exists:") + name;
                }
            }
        }

        int auth = 1;

        if (role.equals(I18N.getMessageString("Administrator"))) {
            auth = 1;
        }
        if (role.equals(I18N.getMessageString("Manager"))) {
            auth = 2;
        }
        if (role.equals(I18N.getMessageString("Employee"))) {
            auth = 3;
        }

        try {
            StoreDB db = new StoreDB();
            db.update("insert into users values(NULL, '" + StoreDB.escape(first) +
                      "', '" + StoreDB.escape(last) +
                      "', '" + StoreDB.escape(name) + "', '" + StoreDB.escape(pass) +
                      "', " + auth + ")");
            int userId = db.insertID();
            int row = getRowCount();
            Object[][] newData = new Object[row + 1][];

            for (int i = 0; i < row; i++) {
                newData[i] = data[i];
            }

            Object[] temp = new Object[6];
            temp[0] = new Integer(userId);
            temp[1] = name;
            temp[2] = pass;
            temp[3] = first;
            temp[4] = last;
            temp[5] = role;
            newData[row] = temp;
            data = newData;
            //db.shutdown();
            return null;
        } catch (Exception e) {
            return e.getMessage();
        }
    }