doc: diagrams database