Made changes according to ui.c.
Addressed review comments.
Merge pull request #4 from jeevitha517/studentdb_add

Made changes according to ui.c.