Where does android store the missed/incoming/outgoing calls? I am looking for the database where android actually stores its call lists. My dialer currently does not store any call there and I want to debug the problem.

I already looked in com.android.dialer/databases/dialer.db but it does not seem to be the database I am looking for. In /data/data the only thing with call in the name is callbackup. I looked into the data of the contacts apps as well, but this seems to be the wrong place, too.
It's stored in /data/data/com.android.providers.contacts/databases/calllog.db, under the "calls" table, in reverse time order (i.e. the last item in the table is the latest call in the log as displayed in the dialer).