fixed association with testing to verify data writing to database