Added insert/update queries for 7 precomputed tables
added comments