I've revised the database (moving the BugName to the Bugs table) and fixed up the code.
You can find it posted on my web site: http://www.LibertyAssociates.com - click on Books and then (on the left) click on Articles. Scroll to this article and download the source.
I've included a .bak file for restoring the db with some data, or a .sql script to restore the structure.
I also included the user database which has three users: Jesse, Dan and Stacey. The passwords are Jesse!!, Dan!! and Stacey!! respectively.