IPv6 implementation fixing and database connection to UTF8 setting

IPv6 implementation fixing and database connection to UTF8 setting