Fixed up sql and settings files for production server. Updated the views to fix a bug.