[lib] mysql changed to mysqli