store tokens to db.