Minimal mongodb integration with Flask.