fixed bug of db module(locproduct with location id=0 or 1)