def METHOD_NAME(self, q):
    count = 0
    c = self.connection.cursor()
    for row in c.execute("SELECT * FROM http WHERE complete=0"):
        o = pickle.loads(row['object'])
        q.put(o)
        count += 1
    c.close()
    return count