Revert "CONVERT TO MYSQLI"

This reverts commit 13b30a10c4380f909d59da36138801bfeb7cd4cb.