database migration and model class