added code to save all inquiry fields to database