db_test.py writes to local database