add gallery model and table