Added gender column and fixed misc security bugs