First attempt at DB option group generation