public UserRole role(String username) {
		// Open the connection
		connect();

		// Make the statement
		PreparedStatement statement;
		try {
			statement = getConnection().prepareStatement(
					"select * from users where username = ?");

			statement.setString(1, username);

			set = statement.executeQuery();

			// If we can't access the next result set, it means the user doesn't
			// exists or he doesn't have a role.
			if (set == null) {
				return UserRole.NONE;
			}

			// If we can access the next result set we will determine which role
			// the
			// user has.
			else {
				set.next();

				// Save role in a string.
				String role = set.getString("role");

				if (role.equals("Admin")) {
					return UserRole.ADMIN;
				} else if (role.equals("Balie")) {
					return UserRole.BALIE;
				} else if (role.equals("Garage")) {
					return UserRole.GARAGE;
				} else if (role.equals("Klant")) {
					return UserRole.KLANT;
				}
			}

		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		// Close the connection
		close();

		// If we came this far something went wrong, return UserRole.None.
		return UserRole.NONE;
	}