changed the way tags get queried

Signed-off-by: Alexander Skjolden <alex@plastboks.net>