script for adding, modifying and deleting work