Progress on SQL(ite) storage. Far from done...

Signed-off-by: Matthias Stevens <matthias.stevens@gmail.com>