You'd need to take the full stop off the beginning of the filename too - htaccess.txt
I've always found this to be an issue with Dreamweaver, if there is a .htaccess file in the local Files, it won't see the database. Anyway, glad you got it working!