Stop using `device_max_stream_id` table and just use `device_inbox.stream_id`.