Updates an DB