[database] Add helper property to get the environment configured for the database

Part of beat.core#64
4 jobs for add_support_for_db_environment in 2 minutes and 55 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Build
passed #201493
docker
build_linux_36

00:02:51

73.0%
passed #201494
docker
build_linux_37

00:02:53

73.0%
passed #201491
macosx
build_macosx_36

00:02:47

73.0%
passed #201492
macosx
build_macosx_37

00:02:45

73.0%