SQL fixes and refactoring.

*   Added missing semicolon
*   Refactored code to match Wikimedia database style

Change-Id: I27d3cae950d3305622889db6730b2db6040f33a6
Filled out most of SpecialBadgeIssue logic.

*   Error handling
*   Assertion insert (mostly)
*   i18n

TODO:
*   Figure out what the final assertion table will look like (image?)
*   Actually hook up assertion insert to final schema

Change-Id: I13619b6e4cc6fe9149a0fd1cf00aa8b669978f9e
SQL renaming.

Change-Id: Id89200d9dfa7e680b280d083e9fcb9fc8d6a03ce
Merge pull request #9 from donyu/badgeissue

Badge issue skeleton implementation