I have implemented three methods to detect if publishers, transactions or daily stats respectively are null, if they are null, we do not insert them.