changed parameter name from db_name to collection_name