add console command to updata database schema
use inheritance instead of traits