[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 Name Job ID Coverage
  Build
passed build_linux_36 #201493
docker

00:02:51

73.0%
passed build_linux_37 #201494
docker

00:02:53

73.0%
passed build_macosx_36 #201491
macosx

00:02:47

73.0%
passed build_macosx_37 #201492
macosx

00:02:45

73.0%