Update MongoDB dependency to 1.3.17

This fixes various bugs. One of them causes crashes when using replica sets. Maybe 1.3.x should be used?