Add connection parameter to insert_row method