changes as per the new mysqli