Added mysql connector logic and some unit tests