actually make a db connection, and eliminate unneeded update duplicate function
Merge branch 'master' of github.com:weaselkeeper/distaff