Fixed MySQL Errors
Merge pull request #110 from ekampf/feature/fixmyql

Fixed mysql error handling