Primary keys cant be null
added sample templates and a templateview