debugging and changing mysqli fetch all