Update to the test_database.py module, consolidates some code and lists the number of moons per planet.