Update Database.