c++ / sqlite logger