db connection with charset setting