optional setup DB adapter from registry
toArray() Method for collections