Update SQL

Temp Values Added, UNIQUE added to name in CAT, first sp implementation