Use named mysql error constants rather than raw magic numbers.
Merge pull request #74 from mozilla/rfk/mysql-error-constants

Use named mysql error constants rather than raw magic numbers.