Random id's now working well and csv import can now be inserted into the database