Added controllers and model for database control, updated view too
master modified