Updated to msqli and everything broke