added db functions for window functionality

"density_data"