adapt agent func key schema to resemble forwards
adapt agent func key logic to use new database schema
Merge branch 'func_key_agent_schema'