Verifying params are correct and parsing mongo conf