fixing sqlite collection and product model