Changed extensions of templates, added bootstrap and separated insert and update