Move methods to api/crud