def hasName(self, name):
        cu = self.db.cursor()
        cu.execute("SELECT instanceId FROM Instances "
                   "WHERE troveName=? AND isPresent=1",
                   name)
        return cu.fetchone() != None