may be wise to reset line_state->db_len as well