* Refactor notification type handling in card.php
we have email and sms feature
but it seems that sms is not well manager
Furthermore, it's not possible to manage other notifications (on a smartphone app, for example).
Ideally, this should be put in a dictionary.
* Initialize num variable before query execution
* Update card.php