web.py: rewrite subscribe-to-db, prepare for multiple tables
deliver+display both inbound and outbound messages

Also sort them by timestamp. Currently all messages (to/from all
correspondents) are show in the same list: in the future, this will be
broken up by rooms.