Added commands to load database and smarty with language vars.