private function getIdFromDB($mimetype) {
        $qb = $this->dbConnection->getQueryBuilder();
        $qb->select('id', 'mimetype')
            ->from('mimetypes')
            ->where(