refactor table_mysql to be able to reconnect with the same config.
this was not supposed to go in
fix previous
call mysql_stmt_error in stmt error context
try to reconnect on certain errors