Adding template database structure