add selvedge attribute to database