Move ci-metrics tables to untrusted (#2714)

Tables are already created with needed permissions and this change will
update the code to write to them.

+ small test fix
3 files changed