Use of mysqli, as mysql is now deprecated
better management of charsets