db: add some debug statements for inserts into the in-memory database