added db configuration via environment variable