experimental SQL-based error logger