storage_sqlite: use public functions only.

academic reason: as the storage module idea is to implement a given interface (and be modular), it should IMO keep hands off internal data structures and use public API only.

practical reason: If anybody would want to implement a 3rd-party storage module, thats the way to get started.