minorid and majorid added to db