Implement machine logs storage, retrieval and streaming from sqlite. Provide migration from circbuf to sqlite.