in reply to Simple SQL like thingy?

Try looking at DBD::RAM, it should be able to do what you want with a little tweaking.