Dev partitionmon

Optimize monitor.php to use partitions for work queries