I'm still at the beginning of the template, but somehow it's partly
working now. I'm not sure, what I actually changed, but never mind.
So the problem that needs to be resolved is this:
I want to be able to access an array from within my template file, for
that I use in the controller file following code:
$query = \OCP\DB::prepare("SELECT * FROM *PREFIX*msg WHERE