created BaseModel for updating DB records from form data