Initial locale support

Also updated saved variables to a DB structure