Several additions

Gender statistics fix when empty db.
Disable add relations when no selection.