added a migration script for the new API keys feature