Make sure the installation process is repeatable if there is a failure.

Also, downgraded the mysql driver version as the one used before did not deploy on wildfly.