Move top committers query to board model and make its group by query work on postgres