Fail the build if database is required and db env variables have not been set