change events query to use id > instead of limit x,y