simplify query
setup logging
longer intervals to test multi processes on the same time