Syntax for second database queries

Hello Fredrik, where did you add/change the roles and permissions to make this work?
Thanks!

Matias