This most recent version isn't even setting the value for the randomString field in the insert at all.
What is the data type of that column in your database? It looks like that might have been the problem in the original file. It needs to be varchar(10)