Migration to add entries to matviews table

There is no issue related to this. This change come from a discussion with @jkburges.
Yeah, I don't really like the idea of saying "this thing might break and just ignore it if it does" so I am happy to check out the preconditions as it'll be a nicer way of doing it.