def update_state_db(self, db_result, sys_req_slot_entropies=None):
        """
        Updates the current database results in the dialogue state.

        :param db_result: a dictionary containing the database query results
        :param sys_req_slot_entropies: entropy values for each slot
        :return:
        """

        if db_result:
            self.DState.db_matches_ratio = len(db_result)
            self.DState.item_in_focus = db_result[0]

        if sys_req_slot_entropies:
            self.DState.system_requestable_slot_entropies = \
                deepcopy(sys_req_slot_entropies)

        return self.DState

        Updates the current database results in the dialogue state.

        :param db_result: a dictionary containing the database query results
        :param sys_req_slot_entropies: entropy values for each slot
        :return:
        
applications/cambridge_restaurants/camrest_dst.py