Add an index for updated_at in both MySQL and Postgres, add a node status insert function for postgres