refreshes db