Your database names are not visible in SSMS through SQL Connect. This is due to the Browser Directory being disabled.
To run a script for your database please use the 'Use' command. Please see the below example:
USE EnterDatabaseNameHere
Select * From TableName
