mysqli fixes