Finished first draft of Add processing, finished insert/update function, normalized indentation