Created db module and get_latest_data function
added db functions for getting windows by group and parent
Merge pull request #32 from thebrianzeng/mergewindow

added db functions for window functionality