sqlite logging and listing