Remove globals
Pass data object instead of multiple args
Fix adding crud
Create working CRUD methods