sql to get product cover and avatar image