Remove outdated unused function db_get_fields_recursively