fixed myhome picture count by clean implementation of table fill-up