C of crud implemented, does not work