minor model changes
change delete protocol, fix tests
add migration tool script