added database set_eencoding function