stuff
restructuring for mysqli