bug: needed to keep track of multiple databases in event group