Added in some translation stuff, and fixed a couple of SQL statements.