specify parameters as comamnd line arguments, better error handling for Readingdb
configure connecting to mongodb for metadata and streamids