work in progress / SQL persistency