[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)