Update Library/Database.php

Added exception code.
Merge pull request #1 from mwatts7222/patch-1

Update Library/Database.php