There's an issue with the way user_id was being inserted into the database in ajax_insert_comment().

The array of data to be committed contained the key 'user_ID'. I believe it needs to be 'user_id' in order to be inserted correctly.