Zero-initialize main_db in case of failed open.
Doc improvements.