Added functions for sql_affected_rows and sql_error