Hi,
In order to deploy queries to VDP, I would follow the article [Deploying Saved Queries](https://community.denodo.com/docs/html/browse/8.0/en/vdp/data_catalog_up_to_update_20210209/saved_queries/deploying_saved_queries/deploying_saved_queries). To avoid the “Error loading database”, I would make sure
1. The Server URI is correct with the right port number
2. The target database is accessible using the nominated User/Password
3. The target environment is the development environment. Typically, the business users will deploy the code in a development environment and administrators will promote the code to higher environments.
If you still need help and you have a valid support user account, please open a new support case at the [Denodo Support site](https://support.denodo.com/) so that the support team can assist you.
Hope this helps!