SQL: keep backwards compatibility for write_frame index handling