Update from depricated mysql to mysqli.