add trigger to refresh database button