Removed unneeded loop
Removed deprecated timestamp
Added random password generation for mysql root account