db-parser: use explicit enum references in the data structure

Following a review comment by Viktor Juhasz, I've named all the enums
in patterndb-int.h and referenced it from all around the data structure
to make their relations more explicit.

Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>