HW4_3b completed created script to save database