added env/host condition for db settings