I don't work directly on wordpress pages from dreamweaver, so I haven't run into this problem. It could be that you are working in live view and your local database connection information is different. Another option might be to define your testing server as your remote server instead of hosting it locally.