changed field type on permit_date to DateTime type