if CustomCollection inherit has Meta.document, use Document settings database when connect database.