Database graphs