api requests with mongo working now