Add an after_commit hook on ext.sqlalchemy using identities rather than entity instances