Gets data from server and tries to put it in the model