As long as the script you need to connect the database is located in your account with us, it should work. Given you put the correct details for connecting into the script.
We're not a database host, we provide the option to have a database that you can use with a site hosted at our servers only.