Fix echo error typo
Throw exception on mysql connection error