- use consistent methode to check if the id is 0
- fix the error message to be more precise what it is
- added creating and deletion