only update queue_size when you make a DB call