extracted contacts db logic from main worker script
added support for frontend test failure detailed reports