Added UpdateMonitorDatabase() to update the list of windows on each monitor