Move all those sqlite bits into private instance variables. Derp.