Exception Handling Changes

Changed a sys.exit(1) to a raise as it seeems appropriate.

Removed unnessacary error check from db_error. I tried extremely hard to get it to throw an indexError.