install database in pagoda Boxfile, and clean up database init code

Moved the init code into deploy/, split up schemas and data (and views for good measure) as is standard practice, and made some wrapper sql files to source the various files in the right order.  I didn't change any data, except to have the data inits start with DELETE statements, so that if you want to reset the data in the tables only, you don't wind up with duplicate rows.