added template to system and created a database connection