use github api and save user info in mongo db