database update and status btn