Fix Database error when opening event in backend #395