Move information about the tags / queue to `ci_pending_builds`

Description

Denormalize taggings and insert tags into the ci_pending_builds table.

Use PostgreSQL feature to match tags (see "Arrays"). Use an array of integers with ids pointing to tags table from tags column.

Use PostgreSQL Array matching operators to match tags with <@.

Confidence: 85%

/cc @abrandl

Edited by Grzegorz Bizon