change http to read data from mongodb slave