database charset and collation improvements