use crud as library