Menu app : connection attempt failed unknown database

I get this error ONLY when running my menu app. An error occurred while connecting to the database:
Connection attempt failed: sqlstate[hy000] [1049] Unknown database suretypro
I have selected the connection in application settings.
I can run any other grid, form, or PDF using the same connection.
I tried recreating the menu, and get the same error.
Any ideas for how to solve this?

I figured this one out. Even though I had the correct database connection, I looked in the PHP code and there was a reference to another database connection. I had to delete that one to get the menu to work.