Essential Methods Exercise 2
fixed random number generator
fixed issue with list not updating when item is added to database