How to pull out Twig variables?
I looked at some other modules controllers and saw that in the controller they used 

$result = db_query    
$output = $result-&gt;fetchAll();


Before pushing the code to the return array. I tried it and it worked for me like it should. Problem solved.