Graph database for small/medium sized graphs with automated statistics aggregation