Adding sqlite support for logging, need to add command line option