[Backend] Updated mongodb and mysql models.