Add groups() to databases