Remove commented refreshState func and wait for db conn before listening on server.