[databases] Use db environment info for container creation

Following the latest updates of beat/beat.core>, use
the environment field if available to find the correct
database image to use. Otherwise, use the original
technique based on the database list provided with
the image.
4 jobs for update_db_container_creation in 4 minutes and 4 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #202905
docker-build
build_linux_36

00:02:55

59.0%
passed #202906
docker-build
build_linux_37

00:02:53

59.0%
passed #202903
macosx
build_macosx_36

00:04:01

59.0%
passed #202904
macosx
build_macosx_37

00:03:49

59.0%