Adding in line break after  each object to allow dat in import
adding in a simple catch if no db and colleciton is passed in