Fix locale issue and DB auth