Working background fetch and mongo Restful service