Changing spell database to array