Updated mongoose connections in API