fix api urls and connection string for mongo