def insertUser(self):
        if(self.getUsername() != None):
            self.__openDB()
            sql = "INSERT INTO public.postnas_search_access_control (username,name,access) VALUES (:username,:name,:access)"
            query = QSqlQuery(self.db)
            if (self.dbSchema.lower() != "public"):
                sql = sql.replace("public.", self.dbSchema + ".")
            query.prepare(sql)
            query.bindValue(":username",self.getUsername().lower())
            query.bindValue(":name",self.name)
            query.bindValue(":access",self.access)
            query.exec_()
            if(query.lastError().number() == -1):
                return True
            else:
                return False
        else:
            return False