public LibraryBean[] searchInNaturalMode(String query){
		LinkedList<LibraryBean> list = new LinkedList<>();
		try {
			PreparedStatement statement = connection.prepareStatement(SEARCH_IN_NATURAL_MODE);
			statement.setString(1, query);
			ResultSet resultSet = statement.executeQuery();
			
			LinkedList<Integer> listOfId = new LinkedList<>();
			while(resultSet.next() == true){
				Integer idLibrary = Integer.parseInt(resultSet.getString("idlibrary"));
				listOfId.add(idLibrary);
			}
			
			LibraryDAO libraryDAO = new LibraryDAO(connection);
			for (Integer current : listOfId) {
				list.add(libraryDAO.getLibrary(current));
			}
			
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}

		LibraryBean[] result = new LibraryBean[list.size()];
		return list.toArray(result);
	}