#405: Result refresh bug fix

Fix for #405 - should now wait for the entry to be created in the db before refreshing.