added id-setter for db.entities