public ServerHandler(ValidateUser_Params param) {
		db = new Database();
		isValidUser = false;
//		System.out.println(param.getUsername() + " " + param.getPassword());
		try {
			Database.initialize();
			db.startTransaction();
			users = db.getUserDB().getAll();
			db.endTransaction(true);
		} catch (ClassNotFoundException | ServerException | SQLException e) {
			e.printStackTrace();
		}	
		for (int i = 0; i < users.size(); i++) {
			User tmp = users.get(i);
			if (tmp.getUsername().equals(param.getUsername())) {
				if (tmp.getPassword().equals(param.getPassword())) {
					isValidUser = true;
					accessUser = tmp;
				}
			}
		}
	}