category crud and some minor bugs with msqyli. instead of mysqli->