schema modified for db