Update doc.go and README.md examples to use memdb.

Since the code is only intended to be example code, there is no reason to
use a database which actually writes to disk.