run log cleanup in chunks, because database indexes doesnt play well with ranges