Issue #3210310 by mondrake, murilohp, andypost, daffie, alexpott: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10