Fix not selecting db; add locale codes