trying out a different sqlite approach