Added base model
Added crud functionality
crud code revised and removed unnecessary