added a toDict function to utils to make C in CRUD easier to do