Refactor db inserts ; fix lastAggregatedHeight after caught up

Merge request reports

Loading