mysqli support, bug fixes