Refactored to use MongoDB and Aerospike