refactor sqlite monitor to separate module to avoid problems on hosts w/o sqlite