expanded specs. added user_id column to herds; made it null false.