def addId(self, troveName, versionId, flavorId, timeStamps,
              isPresent = True, pinned = False):
        assert(min(timeStamps) > 0)
        if isPresent:
            isPresent = 1
        else:
            isPresent = 0

        cu = self.db.cursor()
        cu.execute("INSERT INTO Instances(troveName, versionId, flavorId, "
                                        " timeStamps, isPresent, pinned) "
                   "VALUES (?, ?, ?, ?, ?, ?)",
                   (troveName, versionId, flavorId,
                    ":".join([ "%.3f" % x for x in timeStamps]), isPresent,
                    pinned))
        return cu.lastrowid