Fixed login error when setting sql config storage location.
Now purging cache after changing sql config storage location.
Added lang() calls.

Change-Id: I113c06f0d3ef319d72c77d15bf739cae69a72455