Add UPDATE_INTERVAL env var to VM
Fix timezone bug in Postgres query
Move counter and cache to parent module
Refactor to run forever