assessment page now inserts into database correctly