Set database settings using environmental variables