material constructor records state in output db.