More changes to database schema
finished programmatically generating db, added dependency list for later code refactor
Merge branch 'master' of https://github.com/weshack/couch