added equivalents for mysql_num_fields and mysql_free_result