update status with sql request and border change