changed the logic to use the database entries from yaml files instead of hardcoding