rework database encoding settings and conversions
indicate database encoding in the statusbar