Using MongoDB instead of filesystem