extended the dbmng_fields

added 2 fields: pk and field_function