1,add gallery module. 2,add database support