Precompile sqlite statements