Do sanity checks after materialization
Added SQL backend