Add Option.map implementation
Rewrite Bitcoin.Blockchain.DB module to get rid of tuples everywhere, adapt client code accordingly