generic_db network metadata fixes
rework processing of functional annotations