Fixed a lingering issue that caused a DB error under certain circumstances.
Major update to the database structures allowing us to better handle non-English characters.