Renamed views view_* to *_view
Fix for foreign key
Renamed database tables
Doc fix