Added db.commit() to match.py

Was not writing tables properly. Now it does!