Temp fix to count journal, add indexes to matviews