daemon: fix unittest compilation when SQLite is disabled