Make link nullable.
Fixes for type.
Added persistence methods to message service.