Fixes some CRUD functions.