optimize db.Builds a bit