Fixing errors

linked front end with backend for second half of tab 1. Added some
fields to database