Perspective audit log query to database

In the meantime I was figouring it out, the solution I found was in this post

I wasn't testing it from console, but calling it from a button in persepective! In the console give me some other absurd errors by the way!