Added updateDbActivity to regenerate database.