get streamids from mongo -- better handling of errors