public function loadFromDb()
    {
        $this->getLogger()->debug('Reading relationships from DB.');
        $query = $this->getQueryFactory()->createSelectAllQuery($this->tableName);
        $res = $query->execute();
        $rels = array();
        foreach ($res->fetchAll(\PDO::FETCH_ASSOC) as $row) {
            $rels[$row['relationship_name']] = $row;
        }
        ksort($rels);

        return $rels;
    }