Prototype logging to sqlite