Minor: import, comment
Fix #1728 “Form metadata query is nonoptimal with relational databases”

- extract and store metadata as separate column
- update DDL
- capitalize SQL keywords
- tests
  - FilterReceiver
  - metadata extraction
  - read back metadata from the database
  - move some code around
  - upgrade to use 4.6 DDL