Added fetchAll to templateInterface