everything works with 4 precomputed tables
merging
merge to master
Added insert queries for precomputed tables