Added CRUD operations for all db tables.

Also added admin pages for each db table (using Gii).