Building template database

Building template database