improved arg parsing for adding a mongo db