added database and template