Fix MySQL connection validation during installation

Remove call to undefined variable `$tmpConnection`.
I've changed this validation as an empty db name cannot be valid.