just use db.Avg