SQLite logging

Full SQLite logging for messages