Refactored the code
Added mysql client