update db and images