fixing the db lookup from the yaml file