working out arrangement for objects in DB