Finished hamming_db.py, still need to debug