Draft mysqli constume change

Ready for initial testing and debugging in development environments.