Added insert queries for precomputed tables