Created templates and played around with retrieving from the database