added the userdetail table and its functions in settings page