auto refresh on database changes