Added sample data script
Fixed a bug in deleting