Updated db creation script.

Added new view that feeds the home table