set up threads in database, all tests passing