more mysqli fixes