Reducing number of db connections, refactor db::storage/aggregate.