Error chaging connection string SQL Server 2008 r2

We are developing an apliction in c# which uses an openfire server with an SQL Server 2008 r2. We have found same problems changing the connection string of db in openfire.xml. When we change the connection in openfire.xml an we restart the server, the openfire uses the old database connection. Furthemore, when we open the admin console the url database connection is the old one.

We also try to change openfire.xml´s setup label to false.

What are we doing wrong?

Thank you.