Handle some exceptions, use neo4j instead of mongodb.