improve DB to store header attributes