Fixed parse  errors in models.
Fixed DB schema
Added base controllers and views.