use also DB for identity constraints