Getting access_token from database