dbHost selection

added decision statements for a more accurate reading of DB_HOST