HW5 ERROR OCCURED WHILE PROCESSING REQUEST

I can debug locally but use a remote database and it works. But once I
deploy and try to navigate to the database page I get a request error.