Adjust tables indexes and list routines for performance.
Adjust tables indexes and list routines for performance.

Putting indexes on single columns on those tables which have multi-column
primary keys results in better optimized queries when doing joins. (fewer
rows scanned)

Making the list routines for bags, recipes and users not return a
generator avoids a situation where the query appears to last a long
time even though it is just waiting for other code.

Actually that's not quite right, change forthcoming in next commit.

tiddlyweb/tiddlywebplugins.sqlalchemy,tiddlyweb/tiddlywebplugins.sqlalchemy