doc: add some database docs.
docs: fix distcheck