fixed database update and added sysTray indicator