updating API key and DB