Package cross-definition fix

Added a check to see if the mysql-client package is already defined. This prevents conflicts with other modules which define it. The old syntax throws errors even if the other package definition uses the same syntax to check for the definition before defining it.

Are there better ways to avoid the common issue of resource re-declarations?