Fixed mongodb stuff