Finished user edit closes #14
Fixes NullpointerException when no date in db.