Add store thread.

This thread will have to parse thing from the thread that
does the checksums and extract data from the binary
balanced tree to store it into a database that will act
as a cache.