coding standards
Fixed an issue in migration with html encoding
Fixed query to support all deadlines