Put the db migration into a thread to not block starting the dashboard