Save mysql_insert_id to a temporary variable before converting to Ruby