changed group resource to accept an array of databases