db.py now reexports MySQL's errors for cleaner code.