Gen. improvements, and human survey tables

Moving data structures for human survey form to database.  I also added a few foreign keys where they should always have been.