database update main ui update