for k, v in list(my_huge_dictionary.items()):
    c.execute("insert into dictionary VALUES ('%s', %d)" % (k, v))
my_key = 'A'
c.execute("select v from dictionary where k == '%s'" % my_key)
my_value = c.next()[0]
print(my_value)
Loading a huge Python Pickle dictionary