mysql errorhandling

Added error handling and made autocommit option the default.
test_select_dataframe fails, but it looks like the failure was already on master.