# It queries the database for log rows that are either
# a) greater than ws.last_log_id, which is the last log id which was a candidate to be sent out
# b) if ws.last_log_id is nil, then it queries rows starting with notify_id
# It queries the database for log rows that are either
# a) greater than ws.last_log_id, which is the last log id which was a candidate to be sent out
# b) if ws.last_log_id is nil, then it queries rows starting with notify_id