Add SQLite CDR support (bug #1986)