Major reform in the chat backend: use xotcl-core ORM to define all the relevant objects and data model
This greatly converges oracle and postgres codebase and will make easier to apply incremental updates to the data model in the future. It will also automatically update the acs_object_type metadata automatically
TODO: remove legacy procs, temporarly reimplemented using the new backend