Adds CouchDB, Stud, and Refactors Scripts