update datasbase and images