fixed database error because of missing column