set encoding of DB