If you are viewing this forum because you've done everything right and still have the the error "cannot write to database" please check your site definition in dreamweaver. Make sure everything is point to the "RIGHT folder you deem to be considered your "Server". You cannot create, modify, or delete and that cannot be seen. So if you change your server location for testing purposes in dreamweaver make sure your site definition matches to what you are pointing to in the server or u will have conflicts.