added delete spell function
some refactoring and start of edit functionality
last commit before schema is altered
schema is altered to use name as id