Changed to use new ApiKeyManager.
New class. Uses db to manage API keys.