added job_analyzer service
fixed query to DB for uncompleted jobs