Fix diplay unicode, improve database init