Added util package, removed Poller, removed global state from db package