Access token database

Refactored the code according to the comments and added test cases.
A couple of points for this method - 
1. This method is not named well at all.
2. The dictionary that you are checking will never be null since you have initialized it in the constructor. So this method is essentially redundant.