Submission for Session05 Assignment

Hi,
Here is my homework for session05. I don't know how to test data base error message. I think that adding flash before abort(500) should work. 
Look for your comments.
Thanks,
Gary