cleaning keys and values for mongo as well as JSON upload (no newlines), adding package delete functionality