Database passwords being lost when exporting/importing protocols

I've been seeing an issue where the database password information is being lost (or more accurately thay are messed up but not deleted) when protocols are exported/imported.

Each time the protocols are imported, all of the database password parameters have to be reset.

Has anybody else seen this? Does anybody know why this is happening or more importantly how to avoid it? It may be when going from v6 to v7, but I'm not sure if that is the issue.

Thanks.

Robin