print ip mask only if mask < 32
rework database internal rapresentation in a single root and tags