add connection handle error handling
improve callback error handling a bit
fix connection handle deconstructor
re-add mysql_connect and mysql_close