added db functions for getting windows by group and parent