Add basic logging to sqlite