How to see Database logs in Devel module
You need to give Devel permissions to the user from which, you are logged in, and want to view logs.Go to People >> Permissions and give Devel permissions to the role you want to.

However, giving Devel permissions to anonymous user is a security risk. So, avoid that.