added fault tolerance by ignoring missing metrics in database (if for instance nor replication has been set up)