fix warnings with mysqli