Added db schema and changed column name from type to notif_type

Signed-off-by: emanuele <emanuele45@gmail.com>