Compact create an array with variables and their values.
Extract data from database by using find() method.
Add new item to the database by using create method.
If we want to edit the information then we need to id of the desired user and also populating the previous data in the form.
If we want to delete a item then we call the delete method.
If we check whether a data is present in database or not then we use exists() method.