added seting and geting gallery page data to db