added role-NIL fix
fixed NIL-verification. Added first db-model