Serveral accounting fixes:

- NEW: All buckets are inserted at the same time using on DUPLICATE REPLACE
- FIX: Even more restrictive job records for protecting against YANDEX crap. Fixes #1878
Merge pull request #1881 from acasajus/fix-fuckingaccounting

[v6r11] Serveral accounting fixes