Solution 1: Object-Oriented DBMS
Idea: Take an OO language like C++, add persistence & collections.
class frame {
int frameno;
jpeg *image;
int category;
}
persistent set <frame *> frames;
foreach (frame *f, frames)
return f->image->thumbnail();
Shut down the program. Start it up again. Persistent vars (e.g. frames) retain values!