add database file and modify same template