moved templates to subdirectories, along with related JS
implemented database reset.