converted to mysqli because rawhide is throwing ugly depreciation warnings