my sql getting disconnted i didnt have access to grant privalige to my database

My SQL database is disconnecting every 2 to 3 minutes after starting the web, showing error 500. I don't have access to grant privileges to my database, and I can't access it as root or see what privileges my database has. Please assist PythonAnywhere team in resolving this issue.

How are you handling the db connections in your code?