Fixed bug in Database that would prevent the program from successfuly running the first time.