Continue with extra credit on exercise 17

Writing a shell script to test the database program.