(#130) - cache the view DBs

Attaches the view DBs to their source DB for better
performance during queries.  Also fixes a misplaced
parenthesis in the MD5 calculation of the view name.