Fix issue #8 - mysqli was broken due to usage of mysql_real_escape_string.